﻿using System;
using System.Net;
using System.Text;

namespace TestApp.WebService
{
    public class WSException : Exception
    {
        
        // Base constructors
        public WSException() : base() { }
        public WSException(string message) : base(message) { }
        public WSException(string message, Exception e) : base(message, e) { }


        // Status Code
        public HttpStatusCode StatusCode
        {
            get;
            set;
        }

        // Custom constructor
        public WSException(HttpStatusCode statusCode, string message)
            : base(message)
        {
            StatusCode = statusCode;
        }
    }
}
